package com.lsl.crm.daoImpl;

import java.util.HashMap;

import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.lsl.crm.dao.LogonDao;
import com.lsl.crm.vo.User;

public class LogonDaoImpl extends SqlMapClientDaoSupport implements LogonDao{
	public User login(String name,String password){
		User result=null;
		HashMap<String, String> hs = new HashMap<String, String>();
		hs.put("name", name);
		hs.put("password", password);
		result=(User)getSqlMapClientTemplate().queryForObject("logonSystem",hs);
		return result;
	}
}
